package com.javasm.duanju.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.javasm.duanju.dto.VideoBaseDTO;
import com.javasm.duanju.entity.DraftVideo;
import com.javasm.duanju.vo.VideoInfoVO;
import com.javasm.duanju.vo.VideoVo;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * (DraftVideo)表服务接口
 *
 * @author makejava
 * @since 2025-02-26 19:29:26
 */
public interface DraftVideoService extends IService<DraftVideo> {


    long addVideo(VideoBaseDTO videoBaseDTO);

    long updateVideo(VideoBaseDTO videoBaseDTO);
//上架
    void UpVideo(VideoBaseDTO videoBaseDTO);


    void importVideo(MultipartFile file) throws IOException;

    void exportVideo(HttpServletResponse response) throws IOException;

    void videoDel(VideoBaseDTO videoBaseDTO);


    VideoInfoVO videoInfoById(Long id);

    VideoInfoVO selectOpenVideo(VideoBaseDTO videoBaseDTO);
}

